From cedd6c3522a2b1e0e3febb0da097580317c90a18 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Wed, 16 Sep 2015 17:48:25 +0200 Subject: [PATCH] Adding argparse stub for del command --- persoconf/main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/persoconf/main.py b/persoconf/main.py index 0af3f4a..25002f8 100755 --- a/persoconf/main.py +++ b/persoconf/main.py @@ -271,6 +271,22 @@ parser_add.add_argument( "--confname" , help="A special name to save the conf " \ "file/directory in the persoconf directory" ) +# Delete +parser_del = subparsers.add_parser( "delete" , + help="Delete an app from the persoconf " \ + "directory, or a config file from " \ + "an existing app" ) + +parser_del.add_argument( "app" , + type=str , + help="The app to delete, or the app to delete a " \ + "conf file from" ) + +parser_del.add_argument( "conf" , + nargs="?" , + type=str , + help="The conf file or directory to delete from " \ + "the app" ) # Parse arguments args = parser.parse_args()