Results 1 to 2 of 2

Thread: How to add command not argument to console app?

  1. #1
    Join Date
    May 2018
    Posts
    19
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to add command not argument to console app?

    I want to set usage part
    Usage: ./app command <arg> [options]
    ........
    ........
    Arguments:
    <arg> .....
    I don't know how to show "command" at Usage without argument part when show help.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to add command not argument to console app?

    I do not understand why you are having so much trouble with this. If you are writing the console app, then you are in control of what you print to the screen. Simply output what you want to show.

    It would be very helpful if you showed some real code for what you have tried already. Just telling us what you want to do without explaining what you have tried (and doesn't work) is no good at helping us to see why you are having problems.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Problem about argument of console app
    By madawg in forum Newbie
    Replies: 2
    Last Post: 1st October 2018, 12:23
  2. Replies: 1
    Last Post: 5th July 2017, 02:29
  3. Replies: 12
    Last Post: 19th July 2012, 22:22
  4. How i Get Path From Command Line Argument
    By METEOR7 in forum Qt Programming
    Replies: 4
    Last Post: 17th November 2011, 19:12
  5. Replies: 4
    Last Post: 14th July 2009, 04:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.