From ed9ef484c687e7068b4b47bdd2ee15ccbacfd2af Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Sat, 18 Apr 2015 09:02:15 -0700 Subject: [PATCH] Add help --- gpted.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gpted.c b/gpted.c index 7f57fa8..7951a6d 100644 --- a/gpted.c +++ b/gpted.c @@ -16,6 +16,43 @@ static int cmd_help(struct gpt *gpt, unsigned int argc, const char **argv) { + printf(" help Show this message\n" + " quit Quit (without saving)\n" + " show Show partition table\n" + " write Write partition table to disk\n" + " part-add ... [follow] Add a partition (NOT IMPLEMENTED)\n" + " part-del [follow] Delete a partition\n" + " part-move [follow] Move a partition\n" + " part-resize [follow] Resize a partition\n" + " part-save Save a partition\n" + " part-load Load a partition\n" + "\n" + " is a partition name. Only ASCII names are supported.\n" + "\n" + " is a number, representing the offset from the beginning of the\n" + " device. The default unit is blocks. Multipliers 'k', 'm', 'g'\n" + " may be used.\n" + "\n" + " is a number, representing a partition size. The default unit is\n" + " blocks. Multipliers 'k', 'm', 'g' may be used.\n" + "\n" + " The follow argument indicates that all partitions following the named\n" + " partition are to be moved by the same amount that the end of the current\n" + " partition moves. For example, given partition 'data' of size 1m and\n" + " partition 'extra' following 'data', then 'part-resize data 3m follow'\n" + " would result in partition 'extra' moving by 2m.\n" + "\n" +#if defined(ANDROID) && defined(QCOM) + " firmware-save Save firmware partitions\n" + " firmware-load Load firmware partitions\n" + "\n" + " The firmware commands are equivalent to issuing part-save/part-load for\n" + " for all partitions following 'pad' that may not be reasonably expected to\n" + " be recoverable by the user and/or may be too large to save in RAM (that is,\n" + " everything except: recovery, boot, system, userdata, cache, sdcard). The\n" + " files are saved/loaded from the current directory.\n" +#endif + ); return 0; }