Ë
    ÑÕ°jI  ã                   óJ   — d dl mZ d dlmZ d dlZ G d„ d«      Zd„ Zedk(  ryy)é    )ÚCommand©Úexit_successNc                   ó   — e Zd Zd„ Zd„ Zy)ÚArgsc                 ó   — || _         y )N)Ú
com_string)ÚselfÚcommand_strings     úI/var/www/mission/venv/lib/python3.12/site-packages/Naked/commands/args.pyÚ__init__zArgs.__init__	   s	   € Ø(ˆ�ó    c                 ó
  — t        j                  | j                  «      }t        |d   |dd  «      }t	        d«       t	        d«       t	        d«       t	        d«       t	        d«       t	        d|j
                  z   «       t	        d«       t	        d«       t	        d	«       t	        d
t        |j                  «      z   «       t	        d«       t	        d«       t	        d«       t	        dt        |j                  «      z   «       t	        d«       t	        d«       t	        d«       t	        d|j                  z   «       t	        d|j                  z   «       t	        d|j                  z   «       t	        d|j                  z   «       t	        d|j                  z   «       t	        d«       t	        d«       t	        d«       t	        d|j                  z   «       t	        d|j                  z   «       t	        d|j                   z   «       t	        d|j"                  z   «       t	        d|j$                  z   «       t	        d«       t	        d«       t	        d«       t	        d|j&                  z   «       t	        d|j(                  z   «       t	        d«       t	        d «       t	        d!«       t	        d"|j*                  z   «       t	        d#|j,                  z   «       t	        d«       t	        d$«       t	        d%«       t	        d&t        |j/                  «       «      z   «       t	        d't        |j0                  «      z   «       t	        d«       t	        d(«       t	        d)«       |j/                  «       r„d*}t3        t5        |j6                  «      «      D ]S  }d+|j6                  |   v rŒt	        d,|j6                  |   z   d-z   |j9                  |j6                  |   «      z   «       d.}ŒU |st	        d/«       nt	        d0«       t	        d«       t	        d1«       t	        d2«       t	        d3t        |j;                  «       «      z   «       t	        d4t        |j<                  «      z   «       t	        d«       t	        d5«       t	        d«       |j;                  «       rX|j6                  D ]>  }d+|v sŒ|j                  d+«      d   }t	        d6|z   d-z   |j?                  |«      z   «       Œ@ tA        «        y t	        d7«       tA        «        y )8Nr   é   ú u�   â€¢nakedâ€¢ Assuming that your Command object is instantiated as an instance named 'c', the command that you entered would be parsed as follows:ÚApplicationz-----------zc.app = zArgument List Lengthz--------------------z	c.argc = zArgument List Itemsz-------------------zc.argobj = z(Arguments by Zero Indexed Start Positionz(----------------------------------------z	c.arg0 = z	c.arg1 = z	c.arg2 = z	c.arg3 = z	c.arg4 = zArguments by Named Positionz---------------------------z
c.first = zc.second = z
c.third = zc.fourth = z
c.fifth = zLast Positional Argumentz------------------------z
c.arglp = z	c.last = zPrimary & Secondary Commandsz----------------------------zc.cmd = z	c.cmd2 = zOption Exists Testsz------------------zc.option_exists() = zc.options = zOption Argument Assignmentz--------------------------Fú=zc.arg("z") = Tz2There are no short or long options in the command.zCThere are no short options, long options, or flags in your command.zFlag Exists Testsz----------------zc.flag_exists() = z
c.flags = zFlag Argument Assignmentzc.flag_arg("zDThere are no flag style arguments (--flag=argument) in your command.)!ÚshlexÚsplitr	   r   ÚprintÚappÚstrÚargcÚargobjÚarg0Úarg1Úarg2Úarg3Úarg4ÚfirstÚsecondÚthirdÚfourthÚfifthÚarglpÚlastÚcmdÚcmd2Úoption_existsÚoptionsÚrangeÚlenÚoptobjÚargÚflag_existsÚflagsÚflag_argr   )r
   Úcmd_listÚcÚnon_flag_optionsÚxÚyÚthe_flags          r   ÚrunzArgs.run   sÐ  € Ü—;‘;˜tŸ™Ó/ˆÜ�H˜Q‘K ¨!¨" Ó.ˆÜˆcŒ
Üð  aô  	bÜˆcŒ
ÜˆmÔÜˆmÔÜˆj˜1Ÿ5™5Ñ Ô!ÜˆcŒ
ÜÐ$Ô%ÜÐ$Ô%ÜˆkœC §¡›KÑ'Ô(ÜˆcŒ
ÜÐ#Ô$ÜÐ#Ô$Üˆmœc !§(¡(›mÑ+Ô,ÜˆcŒ
ÜÐ8Ô9ÜÐ8Ô9Üˆk˜AŸF™FÑ"Ô#Üˆk˜AŸF™FÑ"Ô#Üˆk˜AŸF™FÑ"Ô#Üˆk˜AŸF™FÑ"Ô#Üˆk˜AŸF™FÑ"Ô#ÜˆcŒ
ÜÐ+Ô,ÜÐ+Ô,Üˆl˜QŸW™WÑ$Ô%Üˆm˜aŸh™hÑ&Ô'Üˆl˜QŸW™WÑ$Ô%Üˆm˜aŸh™hÑ&Ô'Üˆl˜QŸW™WÑ$Ô%ÜˆcŒ
ÜÐ(Ô)ÜÐ(Ô)Üˆl˜QŸW™WÑ$Ô%Üˆk˜AŸF™FÑ"Ô#ÜˆcŒ
ÜÐ,Ô-ÜÐ,Ô-Üˆj˜1Ÿ5™5Ñ Ô!Üˆk˜AŸF™FÑ"Ô#ÜˆcŒ
ÜÐ#Ô$ÜÐ"Ô#ÜÐ$¤s¨1¯?©?Ó+<Ó'=Ñ=Ô>Üˆnœs 1§9¡9›~Ñ-Ô.ÜˆcŒ
ÜÐ*Ô+ÜÐ*Ô+Ø�?‰?ÔØ$ÐÜœ3˜qŸx™x›=Ó)ò ,�Ø˜!Ÿ(™( 1™+Ñ%Øä˜) a§h¡h¨q¡kÑ1°GÑ;¸a¿e¹eÀAÇHÁHÈQÁKÓ>PÑPÔQØ'+Ñ$ð,ñ $ÜÐJÕKäÐWÔXÜˆcŒ
ÜÐ!Ô"ÜÐ Ô!ÜÐ"¤S¨¯©«Ó%9Ñ9Ô:ÜˆlœS §¡›\Ñ)Ô*ÜˆcŒ
ÜÐ(Ô)ÜÐ(Ô)Ø�=‰=Œ?Ø—X‘Xò V�Ø˜!’8Ø Ÿw™w s›|¨A™�HÜ˜.¨8Ñ3°gÑ=ÀÇ
Á
È8Ó@TÑTÕUðVô 	�ô ÐXÔYÜ�r   N)Ú__name__Ú
__module__Ú__qualname__r   r8   © r   r   r   r      s   „ ò)óNr   r   c                  ó8   — ddl m}  d}t        |«        | «        y )Nr   r   aÑ  
Naked args Command Help
=======================
The args command displays information about the data that are parsed from a command string to Command object attributes and that are obtained from Command object methods.  It is intended to help with the design of your application logic when you use the Naked command line parser.

USAGE
  naked args '<command statement>'

The command statement is a mandatory argument to the command.  It should include a complete command as it would be entered on the command line, including the executable.  The argument should be completely enclosed within quotes.

SECONDARY COMMANDS
  none

OPTIONS
  none

EXAMPLE
  naked args 'testapp save somestring --unicode -s --name=file.txt')ÚNaked.toolshed.systemr   r   )r   Úhelp_strings     r   Úhelpr@   `   s   € Ý2ðG€Kô$ 
ˆ+ÔÙ…Nr   Ú__main__)ÚNaked.commandliner   r>   r   r   r   r@   r9   r<   r   r   ú<module>rC      s4   ðõ &Ý .Û ÷Rñ Ròpð. ˆzÒØð r   